package j2se.dynamicProxy;

import org.directwebremoting.util.Logger;

import java.lang.reflect.Method;

/**
 * Created by jingqing.zhou on 2015/6/2.
 * 日志类，用于环绕真正调用的业务方法前后
 */
public class LoggerOperation implements IOperation {
    Logger logger = Logger.getLogger(LoggerOperation.class);
    @Override
    public void start(Method method) {
        logger.debug("+++++++++++++++++++++++start!!+++++++++++++++++++++++++++");
    }

    @Override
    public void end(Method method) {
        logger.error("++++++++++++++++++++++end!!+++++++++++++++++++++++++++++++");

    }
}
